package com.wangmei.mapper;


import java.util.List;
import java.util.Map;

import com.wangmei.model.Product;
import com.wangmei.model.ProductExample;
import com.wangmei.model.Productpic;
import com.wangmei.pojo.ProductAndPicPojo;
import com.wangmei.pojo.ProductCollection;
import org.apache.ibatis.annotations.Param;

public interface ProductMapper {
    int countByExample(ProductExample example);

    int deleteByExample(ProductExample example);

    int deleteByPrimaryKey(Integer pid);

    int insert(Product record);

    int insertSelective(Product record);

    List<Product> selectByExample(ProductExample example);

    Product selectByPrimaryKey(Integer pid);

    int updateByExampleSelective(@Param("record") Product record, @Param("example") ProductExample example);

    int updateByExample(@Param("record") Product record, @Param("example") ProductExample example);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> selectAll();

    List<Product> selectProductByPname(String pname);

    int deleteByPids(List<Integer> pids);

    List<ProductCollection> getProductByCid(Map map);
}